package cn.ynrcb.personnelfile.admin.service;

import cn.ynrcb.personnelfile.admin.entity.NoticeSendEntity;
import cn.ynrcb.personnelfile.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 通知发送表
 *
 * @author lihui
 * @email 379612472@qq.com
 * @date 2021-06-08 14:51:29
 */
public interface NoticeSendService extends IService<NoticeSendEntity> {

    /**
     * 根据条件分页查询列表
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据条件查询列表
     * @param params
     * @return
     */
    List<NoticeSendEntity> queryList(Map<String, Object> params);

    void updateNoticeSendRead(Long id, Long userId);

    /**
     * 批量已读
     * @param ids
     */
    void markRead(String ids);

    Integer needReadNum(Long currentUserId);

    void deleteNoticeSend(Integer[] ids);

    void markAllReaded(Long currentUserId);
}

